package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "study_progress",uniqueConstraints = @UniqueConstraint(columnNames = {"student_id","video_class_id"}))
public class StudyProgress extends BaseModel {	//学习进度
	@ManyToOne
	private User student;     //学生
	@OneToOne
	private VideoClass videoClass;     //章节
	@OneToOne
	private Documentation documentation;     //章节
	private Double progress;     //进度
	private Integer  timeRecord;     //视频观看时长


}

